﻿using System;
using System.Diagnostics;
using System.Windows.Forms;
using MyFinanceManager.Objects;
using System.IO;
using System.Text;
using System.Collections.Generic;

namespace MyFinanceManager
{
    public partial class StartWindow : Form
    {
        public StartWindow()
        {
            InitializeComponent();


#if DEBUG
            List<string> konten = new List<string>();
            konten.Add("Genobank Girokonto");
            konten.Add("Geldbeutel");
            konten.Add("Barclay Cards");

            using (StreamWriter sw = File.CreateText("konten.txt"))
            {
                StringBuilder s = new StringBuilder();
                foreach (var item in konten)
                {
                    s.AppendLine(item);
                }
                sw.Write(s.ToString());
            }
#endif
        }

        private void btAusgegeben_Click(object sender, EventArgs e)
        {
            NewExpense expense = new NewExpense();
            this.Hide();
            expense.ShowDialog();
            this.Dispose();
        }

        private void btEingenommen_Click(object sender, EventArgs e)
        {
            NewIncome income = new NewIncome();
            this.Hide();
            income.ShowDialog();
            this.Dispose();
        }

        private void miExit_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void btGewaschen_Click(object sender, EventArgs e)
        {
            NewTransfer trans = new NewTransfer();
            this.Hide();
            trans.ShowDialog();
            this.Dispose();
        }

        private void btTanken_Click(object sender, EventArgs e)
        {
            NewRefuel fuel = new NewRefuel();
            this.Hide();
            fuel.ShowDialog();
            this.Dispose();
        }
    }
}